Skip to content
Snippets Groups Projects
Commit febe8b34 authored by David Fugate's avatar David Fugate
Browse files

Ported Sputnik changes over from the 'external' directory to...

Ported Sputnik changes over from the 'external' directory to 'test/suite/sputnik'.  Still need to convert
the tests over to test262 format.
parent a7e6453c
No related branches found
No related tags found
No related merge requests found
Showing
with 253 additions and 168 deletions
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.1; * @name: S7.5.3_A1.1;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "abstract" token can not be used as identifier; * @assertion: The "abstract" token can be used as identifier;
* @description: Checking if execution of "abstract=1" fails; * @description: Checking if execution of "abstract=1" succeeds;
* @negative */
*/
abstract = 1;
abstract = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.12; * @name: S7.5.3_A1.12;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "final" token can not be used as identifier; * @assertion: The "final" token can be used as identifier;
* @description: Checking if execution of "final=1" fails; * @description: Checking if execution of "final=1" succeeds;
* @negative */
*/
final = 1;
final = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.13; * @name: S7.5.3_A1.13;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "float" token can not be used as identifier; * @assertion: The "float" token can be used as identifier;
* @description: Checking if execution of "float=1" fails; * @description: Checking if execution of "float=1" succeeds;
* @negative */
*/
float = 1;
float = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.14; * @name: S7.5.3_A1.14;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "goto" token can not be used as identifier; * @assertion: The "goto" token can be used as identifier;
* @description: Checking if execution of "goto=1" fails; * @description: Checking if execution of "goto=1" succeeds;
* @negative */
*/
goto = 1;
goto = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.15; * @name: S7.5.3_A1.15;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "implements" token can not be used as identifier; * @assertion: The "implements" token can not be used as identifier in
* @description: Checking if execution of "implements=1" fails; * strict code;
* @negative * @description: Checking if execution of "implements=1" fails in
*/ * strict code;
* @negative
implements = 1; */
"use strict";
implements = 1;
\ No newline at end of file
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.15;
* @section: 7.5.3;
* @assertion: The "implements" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "implements=1" succeeds in
* non-strict code;
*/
new Function('implements = 1');
\ No newline at end of file
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.17; * @name: S7.5.3_A1.17;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "int" token can not be used as identifier; * @assertion: The "int" token can be used as identifier;
* @description: Checking if execution of "int=1" fails; * @description: Checking if execution of "int=1" succeeds;
* @negative */
*/
int = 1;
int = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.18; * @name: S7.5.3_A1.18;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "interface" token can not be used as identifier; * @assertion: The "interface" token can not be used as identifier in
* @description: Checking if execution of "interface = 1" fails; * strict code;
* @negative * @description: Checking if execution of "interface = 1" fails in
*/ * strict code;
* @negative
interface = 1; */
"use strict";
interface = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.18;
* @section: 7.5.3;
* @assertion: The "interface" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "interface = 1" succeeds in
* strict code;
*/
new Function('interface = 1');
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.19; * @name: S7.5.3_A1.19;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "long" token can not be used as identifier; * @assertion: The "long" token can be used as identifier;
* @description: Checking if execution of "long=1" fails; * @description: Checking if execution of "long=1" succeeds;
* @negative */
*/
long = 1;
long = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.2; * @name: S7.5.3_A1.2;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "boolean" token can not be used as identifier; * @assertion: The "boolean" token can be used as identifier;
* @description: Checking if execution of "boolean=1" fails; * @description: Checking if execution of "boolean=1" succeeds;
* @negative */
*/
boolean = 1;
boolean = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.20; * @name: S7.5.3_A1.20;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "native" token can not be used as identifier; * @assertion: The "native" token can be used as identifier;
* @description: Checking if execution of "native=1" fails; * @description: Checking if execution of "native=1" succeeds;
* @negative */
*/
native = 1;
native = 1;
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.21; * @name: S7.5.3_A1.21;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "package" token can not be used as identifier; * @assertion: The "package" token can not be used as identifier in
* @description: Checking if execution of "package=1" fails; * strict code;
* @negative * @description: Checking if execution of "package=1" fails in strict code;
*/ * @negative
*/
package = 1;
"use strict";
package = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.21;
* @section: 7.5.3;
* @assertion: The "package" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "package=1" succeeds in
* non-strict code;
*/
new Function('package = 1');
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.22; * @name: S7.5.3_A1.22;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "private" token can not be used as identifier; * @assertion: The "private" token can not be used as identifier in
* @description: Checking if execution of "private=1" fails; * strict code;
* @negative * @description: Checking if execution of "private=1" fails in strict code;
*/ * @negative
*/
private = 1;
"use strict";
private = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.22;
* @section: 7.5.3;
* @assertion: The "private" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "private=1" succeeds in
* non-strict code;
*/
new Function('private = 1');
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.23; * @name: S7.5.3_A1.23;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "protected" token can not be used as identifier; * @assertion: The "protected" token can not be used as identifier in
* @description: Checking if execution of "protected=1" fails; * strict code;
* @negative * @description: Checking if execution of "protected=1" fails in
*/ * strict code;
* @negative
protected = 1; */
"use strict";
protected = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.23;
* @section: 7.5.3;
* @assertion: The "protected" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "protected=1" succeeds in
* non-strict code;
*/
new Function('protected = 1');
// Copyright 2009 the Sputnik authors. All rights reserved. // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/** /**
* @name: S7.5.3_A1.24; * @name: S7.5.3_A1.24;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "public" token can not be used as identifier; * @assertion: The "public" token can not be used as identifier in
* @description: Checking if execution of "public=1" fails; * strict code;
* @negative * @description: Checking if execution of "public=1" fails in strict code;
*/ * @negative
*/
public = 1;
"use strict";
public = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.24;
* @section: 7.5.3;
* @assertion: The "public" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "public=1" succeeds in
* non-strict code;
*/
new Function('public = 1');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment