Skip to content

initialize the extMap#25

Merged
sparkprime merged 1 commit intogoogle:masterfrom
sevki:extmap
Aug 16, 2017
Merged

initialize the extMap#25
sparkprime merged 1 commit intogoogle:masterfrom
sevki:extmap

Conversation

@sevki
Copy link
Contributor

@sevki sevki commented Aug 16, 2017

Given the following scenario

vm := jsonnet.MakeVM()
vm.ExtVar("foo", "bar")

calling the ExtVar and ExtCode methods of a vm result in a panic
because the map has not been initialized, this patch adds
initializes the map.

Signed-off-by: Sevki s@sevki.org

Given the following scenario

	vm := jsonnet.MakeVM()
	vm.ExtVar("foo", "bar")

calling the `ExtVar` and `ExtCode` methods of a vm result in a panic
because the map has not been initialized, this patch adds
initializes the map.

Signed-off-by: Sevki <s@sevki.org>
@sbarzowski
Copy link
Contributor

LGTM @sparkprime

@coveralls
Copy link

coveralls commented Aug 16, 2017

Coverage Status

Coverage increased (+0.01%) to 73.741% when pulling a582c5c on sevki:extmap into 899b931 on google:master.

@sparkprime sparkprime merged commit 1826830 into google:master Aug 16, 2017
@sparkprime
Copy link
Contributor

Thanks for the contribution!

@sevki
Copy link
Contributor Author

sevki commented Aug 16, 2017

thank you both for the quick turnaround 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants