Status: Untriaged
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Pri-2 OS-All Area-DevTools

New issue 25305 by [email protected]: A failure inside native_runtime.js  
while attempting to invoke an undefined value as a constructor
http://code.google.com/p/chromium/issues/detail?id=25305

What steps will reproduce the problem?
1. In a JavaScript function, run something like
return new foo();
where foo is not defined.

What is the expected output? What do you see instead?
A meaningful exception with a proper location should be logged in the
console.

Instead, I get a cryptic "Uncaught TypeError: undefined is not a function"
at "native_runtime.js:401" logged. It is virtually impossible to debug own
code using this message (i.e. where the failure occurs).
While debugging, though, I'm seeing a "CALL_NONFUNCTION_AS_CONSTRUCTOR
(line 401)" for an unknown source at the stack top.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to