|
@@ -355,8 +355,12 @@ class Boot {
|
|
case "splice" if (isArray(o)):
|
|
case "splice" if (isArray(o)):
|
|
createClosure(o, ArrayImpl.splice);
|
|
createClosure(o, ArrayImpl.splice);
|
|
default:
|
|
default:
|
|
- var field = handleKeywords(field);
|
|
|
|
- if (UBuiltins.hasattr(o, field)) UBuiltins.getattr(o, field) else null;
|
|
|
|
|
|
+ if(isString(o)) {
|
|
|
|
+ (o:String).length;
|
|
|
|
+ } else {
|
|
|
|
+ var field = handleKeywords(field);
|
|
|
|
+ if (UBuiltins.hasattr(o, field)) UBuiltins.getattr(o, field) else null;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|