Eclipse的Jar包解壓出System.js裡String與Boolean定義分號可有可無嗎?

rgqancy發表於2016-02-22

Eclipse的Jar包解壓出System.js裡String與Boolean定義分號可有可無嗎?

org.eclipse.wst.jsdt.core_1.3.300.v201410221502\libraries\system.js
/**
* Object String()
* @constructor
* @extends Object
* @since Standard ECMA-262 3rd. Edition
* @since Level 2 Document Object Model Core Definition.
*/
function String(){}
String.prototype = new Object();

/**
* Object Number()
* @constructor
* @extends Object
* @since Standard ECMA-262 3rd. Edition
* @since Level 2 Document Object Model Core Definition.
*/
function Number(){}
Number.prototype = new Object();

/**
* Object Boolean()
* @constructor
* @extends Object
* @since Standard ECMA-262 3rd. Edition
* @since Level 2 Document Object Model Core Definition.
*/
function Boolean(){};
Boolean.prototype = new Object();

/**
* Object Date(s)
* @constructor
* @param {String} s
* @extends Object
* @since Standard ECMA-262 3rd. Edition
* @since Level 2 Document Object Model Core Definition.
*/
function Date(s){};
Date.prototype = new Object();

Boolean和Date宣告後的大括號後有分號,而String和Number卻沒有?這是為毛?
這可是從Eclipse帶的jar包裡解壓出來的system.js檔案。修改

相關文章