Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Us…
Browse files Browse the repository at this point in the history
…e '0o' prefix. r=dao

Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
  • Loading branch information
zephyrus00jp committed Feb 15, 2016
1 parent 96b0304 commit 8a54589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sdk/io/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ function remove(path, recursive) {
/**
* Utility function to convert either an octal number or string
* into an octal number
* 0777 => 0777
* "0644" => 0644
* 0777 => 0o777
* "0644" => 0o644
*/
function Mode(mode, fallback) {
return isString(mode) ? parseInt(mode, 8) : mode || fallback;
Expand Down

0 comments on commit 8a54589

Please sign in to comment.