4.0.0-rc.6 AOT regression: exporting function named toString breaks AoT #15420
Labels
area: core
Issues related to the framework runtime
freq3: high
regression
Indicates than the issue relates to something that worked in a previous version
type: bug/fix
workaround4: none
Milestone
I'm submitting a ... (check one with "x")
Current behavior
Exporting a function named
toString
like so breaks AoT with the following error:Expected behavior
Functions named
toString
are allowed or there is a precise documentation and clear AoT error when a "disallowed" function named is used.Minimal reproduction of the problem with instructions
gulp build:demo
and see the error almost immediately.This used to work in rc.5 and is linked to the function name (renaming the utility function in question from
toString
to sth likestringify
makes the error go away.What is the motivation / use case for changing the behavior?
Regression.
Please tell us about your environment:
OSX, node v6.9.5
The text was updated successfully, but these errors were encountered: