If you have an input code like:
var x = "\u0000";
it will be converted to
"use strict";
var x = "\0";
You can test this on the Babel website itself: Example
What is necessary to disable Unicode compilation?
(Tested with Babel 6.19.0)
"\ "
Is a specific example, it will not happen with other unicode chars.
If you try it with \Ȁ
for example - it will not change.
You can see in the following example that the actual value is exactly the same:
console.log('\ ' === '\\0')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.