You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we use Apigee (Trireme). I tested code below on my local Trireme installation and it works as described below.
Simple code: Object.prototype.toString.call(null)
Run using Node: [object Null]
Run using Trireme: [object Object]
I see the comment in MSD about usage of 'function.call(thisArg)':
thisArg
The value of this provided for the call to a function. Note that this may not be the actual value seen by the method: if the method is a function in non-strict mode , null and undefined will be replaced with the global object and primitive values will be converted to objects.
Setting 'use strict' doesn't change anything.
Some 3rd-party modules use such code and it doesn't work as expected if we run our project using Apigee.
Is it possible to fix it to have the same behavior as described for 'strict' mode to avoid replacement of null with object? Or did someone provide an explanation about this behavior?
The text was updated successfully, but these errors were encountered:
we use Apigee (Trireme). I tested code below on my local Trireme installation and it works as described below.
Simple code: Object.prototype.toString.call(null)
Run using Node: [object Null]
Run using Trireme: [object Object]
I see the comment in MSD about usage of 'function.call(thisArg)':
Setting 'use strict' doesn't change anything.
Some 3rd-party modules use such code and it doesn't work as expected if we run our project using Apigee.
Is it possible to fix it to have the same behavior as described for 'strict' mode to avoid replacement of null with object? Or did someone provide an explanation about this behavior?
The text was updated successfully, but these errors were encountered: