henry_flower (
henry_flower) wrote2015-01-30 07:00 am
Entry tags:
Дать бы им по башке. CoffeeScript 1.9.0. changelog: Changed strategy for the generat
Дать бы им по башке.
CoffeeScript 1.9.0. changelog:
Changed strategy for the generation of internal compiler variable names.
Разумеется, у меня тут же build process сломался, потому что в одной утилитке было такое:
class Foo
constructor: (@bar)->
throw new Error 'invalid bar' unless bar?.root
потому что раньше@bar== bar, а теперь хрен:
--- 1.8.0.js 2015-01-30 06:21:25.431770596 +0200
+++ 1.9.0.js 2015-01-30 06:21:22.713776745 +0200
@@-1,11 +1,11 @@
-// Generated by CoffeeScript 1.8.0
+// Generated by CoffeeScript 1.9.0
(function() {
var Foo;
Foo = (function() {
- function Foo(bar) {
- this.bar = bar;
- if (!(bar != null ? bar.root : void 0)) {
+ function Foo(_at_bar) {
+ this.bar = _at_bar;
+ if (!(typeof bar !== "undefined" && bar !== null ? bar.root : void 0)) {
throw new Error('invalid bar');
}
}
CoffeeScript 1.9.0. changelog:
Changed strategy for the generation of internal compiler variable names.
Разумеется, у меня тут же build process сломался, потому что в одной утилитке было такое:
class Foo
constructor: (@bar)->
throw new Error 'invalid bar' unless bar?.root
потому что раньше@bar== bar, а теперь хрен:
--- 1.8.0.js 2015-01-30 06:21:25.431770596 +0200
+++ 1.9.0.js 2015-01-30 06:21:22.713776745 +0200
@@-1,11 +1,11 @@
-// Generated by CoffeeScript 1.8.0
+// Generated by CoffeeScript 1.9.0
(function() {
var Foo;
Foo = (function() {
- function Foo(bar) {
- this.bar = bar;
- if (!(bar != null ? bar.root : void 0)) {
+ function Foo(_at_bar) {
+ this.bar = _at_bar;
+ if (!(typeof bar !== "undefined" && bar !== null ? bar.root : void 0)) {
throw new Error('invalid bar');
}
}
Permalink: https://plus.google.com/115290581164606462017/posts/B1W4pxCJaUP
