use `onlyStrict` flag instead of `"use strict"` directive

This commit is contained in:
Michael Ficarra 2018-01-05 11:46:48 -08:00 committed by Rick Waldron
parent 02ceb62400
commit 33b6c31331
1 changed files with 1 additions and 2 deletions

View File

@ -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"]));