test262/test/language/expressions/this/S11.1.1_A1.js

16 lines
324 B
JavaScript
Raw Normal View History

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "this" is reserved word
2014-07-25 00:41:42 +02:00
es5id: 11.1.1_A1
description: Checking if execution of "this=1" fails
2016-01-31 00:50:36 +01:00
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
this = 1;