mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 20:44:43 +02:00
use onlyStrict
flag instead of "use strict"
directive
This commit is contained in:
parent
02ceb62400
commit
33b6c31331
@ -6,10 +6,9 @@ description: >
|
||||
Behavior when thisArg is provided
|
||||
Array.prototype.flatMap ( mapperFunction [ , thisArg ] )
|
||||
includes: [compareArray.js]
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var a = {};
|
||||
|
||||
assert(compareArray([1].flatMap(function() { return [this]; }, "TestString"), ["TestString"]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user