fix std.json regression

This commit is contained in:
Andrew Kelley 2019-06-22 18:54:27 -04:00
parent 86f362ce8e
commit 2b1695b1b0
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 3 additions and 2 deletions

View File

@ -876,8 +876,9 @@ pub const TokenStream = struct {
pub fn next(self: *TokenStream) !?Token {
if (self.token) |token| {
const copy = token;
self.token = null;
return token;
return copy;
}
var t1: ?Token = undefined;

View File

@ -90,7 +90,7 @@ test "std" {
_ = @import("hash.zig");
_ = @import("heap.zig");
_ = @import("io.zig");
//_ = @import("json.zig");
_ = @import("json.zig");
//_ = @import("lazy_init.zig");
_ = @import("macho.zig");
_ = @import("math.zig");