Revision: 22564
Author: [email protected]
Date: Wed Jul 23 14:11:30 2014 UTC
Log: Fix Handle-related bug in RangeType constructor.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/415603002
http://code.google.com/p/v8/source/detail?r=22564
Modified:
/branches/bleeding_edge/src/types.h
=======================================
--- /branches/bleeding_edge/src/types.h Tue Jul 22 17:33:22 2014 UTC
+++ /branches/bleeding_edge/src/types.h Wed Jul 23 14:11:30 2014 UTC
@@ -686,8 +686,10 @@
StructuralType::New(StructuralType::kRangeTag, 3, region));
type->Set(0, bound);
Factory* factory = Config::isolate(region)->factory();
- type->SetValue(1, factory->NewHeapNumber(min));
- type->SetValue(2, factory->NewHeapNumber(max));
+ Handle<HeapNumber> minV = factory->NewHeapNumber(min);
+ Handle<HeapNumber> maxV = factory->NewHeapNumber(max);
+ type->SetValue(1, minV);
+ type->SetValue(2, maxV);
return type;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.