Skip to content

Commit

Permalink
arguments object, non-strict immutable name binding fixup (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron authored and leobalter committed Oct 16, 2017
1 parent 5d4c667 commit 9e3ff9a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/language/arguments-object/S10.1.6_A1_T3.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2017 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-functiondeclarationinstantiation
description: Non-strict mode function execution context has a mutable "arguments" binding, however it is created with a "false" argument, which means it may not be deleted.
info: |
envRec.CreateMutableBinding("arguments", false).
CreateMutableBinding(N, D)
Create a new but uninitialized mutable binding in an Environment Record. The String value N is the text of the bound name. If the Boolean argument D is true the binding may be subsequently deleted.
flags: [noStrict]
---*/

function f1() {
assert.sameValue(delete arguments, false);
}

f1();

0 comments on commit 9e3ff9a

Please sign in to comment.