Can't call .split on a string, is this a bug? #37348
Replies: 1 comment
-
Hmmm, when I actually put it into the file it executes fine, I just can't call it from the debugger. So I guess it is a bug? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I have loaded a 240MB file into a string and I can't call .split on it. It says
VM503:1 Uncaught TypeError: Cannot create property 'split' on object '[object Unknown]'
. The string is already typeof "string" and calling .toString() yields the same error. Also if I doString.prototype.split.apply(thestring, ["\n"]);
I get the same error.Is this a bug in node or is this expected behaviour and I'm missing something?
I'm new to node, usually I write js for the browser and there doing something like that would work.
Beta Was this translation helpful? Give feedback.
All reactions