summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/arrow-function/non-strict.js
blob: f0319effd10861c218b5eab30f1ab4cca232a9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.2.16
description: >
    Runtime Semantics: Evaluation

    1. If the function code for this ArrowFunction is strict mode code (10.2.1),
      let strict be true. Otherwise let strict be false.
    ...

flags: [noStrict]
---*/
var af = _ => {
  foo = 1;
};

af();

assert.sameValue(foo, 1);

reportCompare(0, 0);