Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't print spurious null slot initialization values.

  • Loading branch information...
commit ac84c2750467901fc9ca7b09fedef8227308309e 1 parent f89f68d
@whitequark authored
View
2  lib/furnace-avm2/source/declaration_tokens/slot_token.rb
@@ -16,7 +16,7 @@ def initialize(origin, options={})
*, value = options[:property_values].find { |k,v| k == origin.name.to_astlet }
end
- if value.nil?
+ if value.nil? && origin.printable_value
value = ImmediateToken.new(origin, origin.printable_value, options)
end
View
2  test/basic.as
@@ -7,6 +7,8 @@ package test {
class Literal {
public static var a:A = new A();
public static const b:A = new A(1);
+ public static var c:int;
+ public var d:int;
function test() {
call(1, 1, 200, 200, -1, -50, 32767, 32768, -32760, -500000);
Please sign in to comment.
Something went wrong with that request. Please try again.