~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

« back to all changes in this revision

Viewing changes to js/src/tests/test262/ch10/10.4/10.4.3/10.4.3-1-72gs.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/// Copyright (c) 2012 Ecma International.  All rights reserved. 
 
2
/// Ecma International makes this code available under the terms and conditions set
 
3
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the 
 
4
/// "Use Terms").   Any redistribution of this code must retain the above
 
5
/// copyright and this notice and otherwise comply with the Use Terms.
 
6
/**
 
7
 * @path ch10/10.4/10.4.3/10.4.3-1-72gs.js
 
8
 * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(null))
 
9
 * @onlyStrict
 
10
 */
 
11
 
 
12
function f() { "use strict"; return this===null;};
 
13
if (! f.call(null)){
 
14
    throw "'this' had incorrect value!";
 
15
}
 
 
b'\\ No newline at end of file'