mirror of
https://github.com/tc39/test262.git
synced 2025-07-16 10:34:44 +02:00
21 lines
536 B
Plaintext
21 lines
536 B
Plaintext
// Copyright (C) 2016 Valerie Young. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
desc: sloppy direct eval in params introduces var
|
|
template: error-no-strict
|
|
info: |
|
|
|
|
Runtime Semantics: IteratorBindingInitialization
|
|
FormalParameter : BindingElement
|
|
|
|
1. Return the result of performing IteratorBindingInitialization for BindingElement with arguments iteratorRecord and environment.
|
|
|
|
|
|
features: [default-parameters]
|
|
---*/
|
|
|
|
//- params
|
|
a = eval("var a = 42")
|
|
//- error
|
|
SyntaxError
|