2014-03-17 10:21:01 +00:00
|
|
|
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
|
|
|
|
try {
|
|
|
|
var f = eval("(function(){0 = y + y})");
|
|
|
|
%OptimizeFunctionOnNextCall(f);
|
|
|
|
f();
|
|
|
|
assertUnreachable();
|
|
|
|
} catch(e) {
|
2019-06-29 02:50:53 +00:00
|
|
|
assertTrue(e instanceof SyntaxError);
|
2014-03-17 10:21:01 +00:00
|
|
|
}
|