Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: String.fromCharCode ( [ char0 [ , char1 [ , ... ] ] ] )
6 es5id: 15.5.3.2_A3_T2
7 description: >
8 Create function variable, that equal String.fromCharCode, delete
9 original String.fromCharCode and use created variable
10 ---*/
11
12 var __fcc__func = String.fromCharCode;
13
14 delete String.fromCharCode;
15
16 //////////////////////////////////////////////////////////////////////////////
17 //CHECK#1
18 if (__fcc__func(65, 66, 66, 65) !== "ABBA") {
19 $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ===' + __fcc__func(65, 66, 66, 65));
20 }
21 //
22 //////////////////////////////////////////////////////////////////////////////