@@ -209,34 +209,34 @@ var LibraryEmVal = {
209209
210210#if DYNAMIC_EXECUTION == 0
211211 $emval_get_global : function ( ) {
212- if ( typeof globalThis === 'object' ) {
212+ if ( typeof globalThis == 'object' ) {
213213 return globalThis ;
214214 }
215215 function testGlobal ( obj ) {
216216 obj [ '$$$embind_global$$$' ] = obj ;
217- var success = typeof $$$embind_global$$$ === 'object' && obj [ '$$$embind_global$$$' ] = == obj ;
217+ var success = typeof $$$embind_global$$$ == 'object' && obj [ '$$$embind_global$$$' ] == obj ;
218218 if ( ! success ) {
219219 delete obj [ '$$$embind_global$$$' ] ;
220220 }
221221 return success ;
222222 }
223- if ( typeof $$$embind_global$$$ === 'object' ) {
223+ if ( typeof $$$embind_global$$$ == 'object' ) {
224224 return $$$embind_global$$$ ;
225225 }
226- if ( typeof global === 'object' && testGlobal ( global ) ) {
226+ if ( typeof global == 'object' && testGlobal ( global ) ) {
227227 $$$embind_global$$$ = global ;
228- } else if ( typeof self === 'object' && testGlobal ( self ) ) {
228+ } else if ( typeof self == 'object' && testGlobal ( self ) ) {
229229 $$$embind_global$$$ = self ; // This works for both "window" and "self" (Web Workers) global objects
230230 }
231- if ( typeof $$$embind_global$$$ === 'object' ) {
231+ if ( typeof $$$embind_global$$$ == 'object' ) {
232232 return $$$embind_global$$$ ;
233233 }
234234 throw Error ( 'unable to get global object.' ) ;
235235 } ,
236236#else
237237 // appease jshint (technically this code uses eval)
238238 $emval_get_global : function ( ) {
239- if ( typeof globalThis === 'object' ) {
239+ if ( typeof globalThis == 'object' ) {
240240 return globalThis ;
241241 }
242242 return ( function ( ) {
@@ -491,13 +491,13 @@ var LibraryEmVal = {
491491 _emval_is_number__deps : [ '$Emval' ] ,
492492 _emval_is_number : function ( handle ) {
493493 handle = Emval . toValue ( handle ) ;
494- return typeof handle === 'number' ;
494+ return typeof handle == 'number' ;
495495 } ,
496496
497497 _emval_is_string__deps : [ '$Emval' ] ,
498498 _emval_is_string : function ( handle ) {
499499 handle = Emval . toValue ( handle ) ;
500- return typeof handle === 'string' ;
500+ return typeof handle == 'string' ;
501501 } ,
502502
503503 _emval_in__deps : [ '$Emval' ] ,
0 commit comments