[jsinterp] TODOs in JSStringPrototype#_split

This commit is contained in:
sulyi 2018-06-10 06:19:38 +02:00
parent 37d63066dd
commit 80608898f5

View File

@ -60,6 +60,8 @@ class JSStringPrototype(JSObjectPrototype):
return 'string slice'
def _split(self, sep):
# TODO fix according to spec
# TODO support JSRegexp for sep
if sep == '':
return list(self.value)
return self.value.split(sep)