mirror of
https://github.com/tc39/test262.git
synced 2025-09-24 10:38:30 +02:00
Remove print calls in sm/expressions
This commit is contained in:
parent
9d5508194a
commit
7a02a50975
@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Implement support for string literals as names for properties defined using ES5 get/set syntax
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 520696;
|
||||
var summary =
|
||||
'Implement support for string literals as names for properties defined ' +
|
||||
'using ES5 get/set syntax';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
|
||||
var o;
|
||||
|
||||
@ -43,4 +35,3 @@ o = eval('({ 3.141592654: "pi", 1e4: 17, 0xdeadbeef: "hex", 1e3000: "Infinity" }
|
||||
checkO();
|
||||
o = { 3.141592654: "pi", 1e4: 17, 0xdeadbeef: "hex", 1e3000: "Infinity" };
|
||||
checkO();
|
||||
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Implement ES6 binary literals
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 894026;
|
||||
var summary = "Implement ES6 binary literals";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var chars = ['b', 'B'];
|
||||
|
||||
@ -116,7 +107,3 @@ function strict()
|
||||
return 0b11010101;
|
||||
}
|
||||
assert.sameValue(strict(), 128 + 64 + 16 + 4 + 1);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Computed property names must be considered as always effectful even when the name expression isn't effectful, because calling ToPropertyKey on some non-effectful expressions has user-modifiable behavior
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1199695;
|
||||
var summary =
|
||||
"Computed property names must be considered as always effectful even when " +
|
||||
"the name expression isn't effectful, because calling ToPropertyKey on " +
|
||||
"some non-effectful expressions has user-modifiable behavior";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
RegExp.prototype.toString = () => { throw 42; };
|
||||
assertThrowsValue(function() {
|
||||
@ -36,7 +24,3 @@ Q.toString = () => { throw 17; };
|
||||
assertThrowsValue(function() {
|
||||
new Q;
|
||||
}, 17);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Constant folder should fold labeled statements
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1499448;
|
||||
var summary = "Constant folder should fold labeled statements";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
if (typeof disassemble === "function") {
|
||||
var code = disassemble(() => { x: 2+2; });
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Deletion of a && or || expression that constant-folds to a name must not attempt to delete the name
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1183400;
|
||||
var summary =
|
||||
"Deletion of a && or || expression that constant-folds to a name must not " +
|
||||
"attempt to delete the name";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
Object.defineProperty(this, "nonconfigurable", { value: 42 });
|
||||
assert.sameValue(nonconfigurable, 42);
|
||||
@ -42,7 +31,3 @@ function nestedStrict()
|
||||
assert.sameValue(delete (true && nonconfigurable), true);
|
||||
}
|
||||
nestedStrict();
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
delete (foo), delete ((foo)), and so on are strict mode early errors
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1111101;
|
||||
var summary =
|
||||
"delete (foo), delete ((foo)), and so on are strict mode early errors";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function checkSyntaxError(code)
|
||||
{
|
||||
@ -76,8 +66,3 @@ checkFine("function f() { delete (escape); } f();");
|
||||
checkFine("function f() { delete (escape); }");
|
||||
checkFine("function f() { delete ((escape)); } f();");
|
||||
checkFine("function f() { delete ((escape)); }");
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -6,14 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with various default values in various context - call/new expression
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with various default values in various context - call/new expression";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
testDestructuringArrayDefault("func()");
|
||||
testDestructuringArrayDefault("new func()");
|
||||
|
||||
|
@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with various default values in various context - class expression and super/new.target
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with various default values in various context - class expression and super/new.target";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
testDestructuringArrayDefault(`class E {
|
||||
constructor() {}
|
||||
@ -78,4 +74,3 @@ opt = {
|
||||
no_comp: false,
|
||||
};
|
||||
testDestructuringArrayDefault("new.target", opt);
|
||||
|
||||
|
@ -6,15 +6,10 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with various default values in various context - function expression with nested objects
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with various default values in various context - function expression with nested objects";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
testDestructuringArrayDefault("function f() { return { f() {}, *g() {}, r: /a/ }; }");
|
||||
testDestructuringArrayDefault("function* g() { return { f() {}, *g() {}, r: /b/ }; }");
|
||||
testDestructuringArrayDefault("() => { return { f() {}, *g() {}, r: /c/ }; }");
|
||||
|
||||
|
@ -6,15 +6,10 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with various default values in various context - function expression
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with various default values in various context - function expression";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
testDestructuringArrayDefault("function f() {}");
|
||||
testDestructuringArrayDefault("function* g() {}");
|
||||
testDestructuringArrayDefault("() => {}");
|
||||
|
||||
|
@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with various default values in various context - simple literal
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with various default values in various context - simple literal";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
testDestructuringArrayDefault("'foo'");
|
||||
testDestructuringArrayDefault("`foo`");
|
||||
@ -22,4 +18,3 @@ testDestructuringArrayDefault("/foo/");
|
||||
|
||||
testDestructuringArrayDefault("{}");
|
||||
testDestructuringArrayDefault("[]");
|
||||
|
||||
|
@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-expressions-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with various default values in various context - yield expression
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with various default values in various context - yield expression";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
var opt = {
|
||||
no_plain: true,
|
||||
@ -28,4 +24,3 @@ var opt = {
|
||||
no_gen: false,
|
||||
};
|
||||
testDestructuringArrayDefault("yield 1", opt);
|
||||
|
||||
|
@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
iterator.next() should not be called when after iterator completes
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "iterator.next() should not be called when after iterator completes";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
var log;
|
||||
function reset() {
|
||||
@ -325,4 +321,3 @@ assert.sameValue(log,
|
||||
"next," +
|
||||
"next," +
|
||||
"set:r=[4],");
|
||||
|
||||
|
@ -6,14 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Array destructuring with accessing uninitialized lexical binding.
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1184922;
|
||||
var summary = "Array destructuring with accessing uninitialized lexical binding.";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
assert.throws(ReferenceError, () => { let y = [y] = []; });
|
||||
assert.throws(ReferenceError, () => { let y = [y] = [,]; });
|
||||
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Parenthesized "destructuring patterns" are not usable as destructuring patterns
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1146136;
|
||||
var summary =
|
||||
'Parenthesized "destructuring patterns" are not usable as destructuring ' +
|
||||
'patterns';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
// Don't pollute the top-level script with eval references.
|
||||
var savedEval = this[String.fromCharCode(101, 118, 97, 108)];
|
||||
@ -137,8 +126,3 @@ checkError("var a, b; [(f()) = 'kthxbai', b] = [1, 2];", SyntaxError, SyntaxErro
|
||||
|
||||
Function("var a, b; ({ a: (a), b} = { a: 1, b: 2 });")();
|
||||
Function("var a, b; ({ a: (a) = 5, b} = { a: 1, b: 2 });")();
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,18 +8,12 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
{ get x y() { } } is not valid getter syntax
|
||||
esid: pending
|
||||
---*/
|
||||
// Contributor:
|
||||
// Jeff Walden <jwalden+code@mit.edu>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 999999;
|
||||
var summary = '{ get x y() { } } is not valid getter syntax';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
var BAD_CODE = ["({ get x y() { } })", "({ set x y(v) { } })"];
|
||||
|
||||
for (var i = 0, sz = BAD_CODE.length; i < sz; i++)
|
||||
@ -56,4 +50,3 @@ for (var i = 0, sz = BAD_CODE.length; i < sz; i++)
|
||||
"bad or no exception thrown for Function(" + code + "): " + err);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
|delete x| inside a function in eval code, where that eval code includes |var x| at top level, actually does delete the binding for x
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 616294;
|
||||
var summary =
|
||||
"|delete x| inside a function in eval code, where that eval code includes " +
|
||||
"|var x| at top level, actually does delete the binding for x";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var f;
|
||||
|
||||
@ -163,8 +152,3 @@ function testFunctionLocal()
|
||||
f = testFunctionLocal();
|
||||
|
||||
assert.sameValue(f(), false); // defined by function code => not configurable => false
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,13 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Implement the Nullish Coalescing operator (??) proposal
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1566141;
|
||||
var summary = "Implement the Nullish Coalescing operator (??) proposal";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
// These tests are originally from webkit.
|
||||
// webkit specifics have been removed and a test for `document.all` has
|
||||
@ -117,6 +113,3 @@ shouldBe(null?.() ?? 3, 3);
|
||||
shouldBe((() => 0)?.() ?? 3, 0);
|
||||
shouldBe(({ x: 0 })?.[null?.a ?? 'x'] ?? 3, 0);
|
||||
shouldBe((() => 0)?.(null?.a ?? 'x') ?? 3, 0);
|
||||
|
||||
print("Tests complete");
|
||||
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
__proto__ in object literals in non-__proto__:v contexts doesn't modify [[Prototype]]
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1061853;
|
||||
var summary =
|
||||
"__proto__ in object literals in non-__proto__:v contexts doesn't modify " +
|
||||
"[[Prototype]]";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function hasOwn(obj, prop)
|
||||
{
|
||||
@ -268,7 +257,3 @@ for (var first in members)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
{ get x(v) { } } and { set x(v, v2) { } } should be syntax errors
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'object-literal-accessor-arguments.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 536472;
|
||||
var summary =
|
||||
'ES5: { get x(v) { } } and { set x(v, v2) { } } should be syntax errors';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function expectSyntaxError(s)
|
||||
{
|
||||
@ -46,6 +37,3 @@ expectSyntaxError("({ set x(a, a) { } })");
|
||||
expectSyntaxError("({ set x(a, b) { } })");
|
||||
expectSyntaxError("({ set x(a, a, b) { } })");
|
||||
expectSyntaxError("({ set x(a, b, c) { } })");
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Permit numbers and strings containing numbers as accessor property names
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'object-literal-accessor-property-name.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 715682;
|
||||
var summary =
|
||||
"Permit numbers and strings containing numbers as accessor property names";
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
({ get "0"() { } });
|
||||
({ get 0() { } });
|
||||
@ -33,6 +25,3 @@ print(BUGNUMBER + ": " + summary);
|
||||
({ set 0.(q) { } });
|
||||
({ set 1.(q) { } });
|
||||
({ set 5.2322341234123(q) { } });
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Convert computed property name expressions to property key before evaluating the property's value
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1199546;
|
||||
var summary =
|
||||
"Convert computed property name expressions to property key before " +
|
||||
"evaluating the property's value";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var s = "foo";
|
||||
var convertsToS = { toString() { return s; } };
|
||||
@ -39,7 +28,3 @@ var o = {
|
||||
|
||||
assert.sameValue(o.foo, "abc");
|
||||
assert.sameValue(o.bar, "efg");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Implement ES6 octal literals
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 894026;
|
||||
var summary = "Implement ES6 octal literals";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var chars = ['o', 'O'];
|
||||
|
||||
@ -104,7 +95,3 @@ function strict()
|
||||
return 0o755;
|
||||
}
|
||||
assert.sameValue(strict(), 7 * 64 + 5 * 8 + 5);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Primitive values don't box correctly
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 732669;
|
||||
var summary = "Primitive values don't box correctly";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var t;
|
||||
function returnThis() { return this; }
|
||||
@ -107,7 +98,3 @@ t = "bar".property;
|
||||
assert.sameValue(t !== Object.prototype, true);
|
||||
assert.sameValue(t !== String.prototype, true);
|
||||
assert.sameValue(t.toString(), "bar");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
\\u and \\x must be followed by the appropriate number of hex digits or else it is a syntax error
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 663300;
|
||||
var summary =
|
||||
"\\u and \\x must be followed by the appropriate number of hex digits or " +
|
||||
"else it is a syntax error";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function expectSyntaxError(str)
|
||||
{
|
||||
@ -147,7 +136,3 @@ assert.sameValue(eval('"a\\\nb"'), "ab");
|
||||
assert.sameValue(eval('"a\\\r\nb"'), "ab");
|
||||
assert.sameValue(eval('"a\\\u2028b"'), "ab");
|
||||
assert.sameValue(eval('"a\\\u2029b"'), "ab");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Don't let constant-folding in the MemberExpression part of a tagged template cause an incorrect |this| be passed to the callee
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 1182373;
|
||||
var summary =
|
||||
"Don't let constant-folding in the MemberExpression part of a tagged " +
|
||||
"template cause an incorrect |this| be passed to the callee";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var prop = "global";
|
||||
|
||||
@ -29,7 +18,3 @@ var obj = { prop: "obj", f: function() { return this.prop; } };
|
||||
|
||||
assert.sameValue(obj.f``, "obj");
|
||||
assert.sameValue((true ? obj.f : null)``, "global");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
Loading…
x
Reference in New Issue
Block a user