summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/object/properties-names-eval-arguments.js
blob: 8f9ed68921b0f776bec29eb786240258796d075d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 12.2.5
description: >
    property names `eval` and `arguments`
---*/
var o = {
  eval() {
    return 1;
  },
  arguments() {
    return 2;
  },
};

assert.sameValue(o.eval(), 1, "`o.eval()` returns `1`");
assert.sameValue(o.arguments(), 2, "`o.arguments()` returns `2`");

reportCompare(0, 0);