Permalink
Browse files

Don't print spurious null slot initialization values.

  • Loading branch information...
1 parent f89f68d commit ac84c2750467901fc9ca7b09fedef8227308309e @whitequark committed Jun 16, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 lib/furnace-avm2/source/declaration_tokens/slot_token.rb
  2. +2 −0 test/basic.as
@@ -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
@@ -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);

0 comments on commit ac84c27

Please sign in to comment.