Commit 1ddcb4b1 authored by titzer@chromium.org's avatar titzer@chromium.org

Fix windows build.

TBR=ishell@chromium.org
BUG=

Review URL: https://codereview.chromium.org/669663003

Cr-Commit-Position: refs/heads/master@{#24958}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24958 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 90a7f074
......@@ -15,14 +15,14 @@ namespace {
const int kBufferSize = 1024;
struct TestHelper : public HandleAndZoneScope {
char buffer[kBufferSize];
Handle<JSFunction> function;
LoopAssignmentAnalysis* result;
explicit TestHelper(const char* body)
: function(Handle<JSFunction>::null()), result(NULL) {
snprintf(buffer, kBufferSize, "function f(a,b,c) { %s; } f;", body);
v8::Local<v8::Value> v = CompileRun(buffer);
ScopedVector<char> program(kBufferSize);
SNPrintF(program, "function f(a,b,c) { %s; } f;", body);
v8::Local<v8::Value> v = CompileRun(program.start());
Handle<Object> obj = v8::Utils::OpenHandle(*v);
function = Handle<JSFunction>::cast(obj);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment