Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IActiveScriptProperty usage in a FAILED attempt to get EcmaScri…
…pt 5.1 functionality from the Chakra JScript engine. Looks like we have to use a shim to get the functionality.
- Loading branch information
1 parent
0e9d54f
commit 874fb2c
Showing
5 changed files
with
78 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
| ||
Array.isArray = function(o) { | ||
return (o instanceof Array) || | ||
function engineVer() { | ||
return ScriptEngine() + '/' + [ScriptEngineMajorVersion(), ScriptEngineMinorVersion(), ScriptEngineBuildVersion()].join('.'); | ||
} | ||
|
||
if (typeof Array.isArray == 'undefined') { | ||
Array.isArray = function(o) { | ||
return (o instanceof Array) || | ||
(Object.prototype.toString.apply(o) === '[object Array]'); | ||
}; | ||
}; | ||
} | ||
|
||
Object.prototype.__proto__ = function(source) { | ||
for (var member in source) { | ||
this[member] = source[member]; | ||
} | ||
}; | ||
if (typeof {}.__proto__ == 'undefined') { | ||
Object.prototype.__proto__ = function(source) { | ||
for (var member in source) { | ||
this[member] = source[member]; | ||
} | ||
}; | ||
} |