mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 13:28:38 +02:00
22 lines
657 B
JavaScript
22 lines
657 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* Since Error prototype object is not function it has not [[call]] method
|
|
*
|
|
* @path ch15/15.11/15.11.4/S15.11.4_A3.js
|
|
* @description Checking if call of Error prototype as a function fails
|
|
*/
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#1
|
|
try {
|
|
Error.prototype();
|
|
$FAIL('#1: "Error.prototype()" lead to throwing exception');
|
|
} catch (e) {
|
|
if (e instanceof Test262Error) throw e;
|
|
}
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|