File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -292,10 +292,18 @@ op.istype = function(obj, type) {
292
292
}
293
293
294
294
// HACK
295
- if ( typeof obj === 'number' || typeof obj === 'string' || obj instanceof Array || obj instanceof Hash || obj instanceof NQPInt ) {
295
+ if ( typeof obj === 'number' || typeof obj === 'string' || obj instanceof Hash || obj instanceof NQPInt ) {
296
296
return 0 ;
297
297
}
298
298
299
+ if ( obj instanceof Array ) {
300
+ if ( hllConfigs . nqp && type == hllConfigs . nqp . content . list ) {
301
+ return 1 ;
302
+ } else {
303
+ return 0 ;
304
+ }
305
+ }
306
+
299
307
// TODO cases where the type_check_cache isn't authoritative
300
308
var cache = obj . _STable . type_check_cache ;
301
309
for ( var i = 0 ; i < cache . length ; i ++ ) {
@@ -401,7 +409,9 @@ op.settypehllrole = function(type, role) {
401
409
return role ;
402
410
} ;
403
411
412
+ var hllConfigs = { } ;
404
413
op . sethllconfig = function ( language , configHash ) {
414
+ hllConfigs [ language ] = configHash ;
405
415
/* STUB */
406
416
return configHash ;
407
417
} ;
You can’t perform that action at this time.
0 commit comments