We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d47dbd3 commit be80d9bCopy full SHA for be80d9b
lib/Runtime/Library/JsBuiltIn/JsBuiltIn.js
@@ -193,13 +193,12 @@
193
"use strict";
194
195
if (__chakraLibrary.isArray(obj)) {
196
- return { o: obj, len: obj.length }
197
- }
198
- else {
199
- if (this === null || this === undefined) {
+ return { o: obj, len: obj.length };
+ } else {
+ if (obj === null || obj === undefined) {
200
__chakraLibrary.raiseThis_NullOrUndefined(builtInFunc);
201
}
202
- return { o: __chakraLibrary.Object(obj), len: __chakraLibrary.GetLength(obj) }
+ return { o: __chakraLibrary.Object(obj), len: __chakraLibrary.GetLength(obj) };
203
204
});
205
0 commit comments