diff --git a/examples/javascript/Makefile b/examples/javascript/Makefile
index 19429f011b15fdddc8b014d1aa95f0a42ddca0a7..042975bf976d01dbd3de599827e4b9adc75ce2b5 100644
--- a/examples/javascript/Makefile
+++ b/examples/javascript/Makefile
@@ -21,8 +21,10 @@ BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \
 # development process:
 DEVELHELP ?= 1
 
+ifneq ($(BOARD),native)
 # Set stack size to something (conservatively) enormous
 CFLAGS += -DTHREAD_STACKSIZE_MAIN=9092
+endif
 
 # Add the package for Jerryscript
 USEPKG += jerryscript